package org.example.service;

import org.example.ann.DynamicExecutor;
import org.example.config.ExecutorConfig;
import org.example.entity.dto.XxlJobGroupResponse;
import org.example.entity.dto.XxlJobInfoReq;

import java.util.List;

/**
 * @author zengxiaoyu
 * @date 2025/9/12 9:19
 */
public interface XxlJobExecutorApi {

    public XxlJobGroupResponse getAllExecutors(String appName);

    boolean createExecutor(ExecutorConfig executor);

    Integer getJobGroupId(String appName);

    void createJobIfNotExist(XxlJobInfoReq xxlJobInfoReq);

    void removeUnusedJob(String author);
}
